<!DOCTYPE html>

<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>

<html>
<head>
<meta charset="utf-8">
<title>ffpsearch</title>
<script type="text/javascript" src = "/SpringTest/js/jquery-3.1.1.js"> </script>
<script type="text/javascript">
function FfpSearch()
{
	
	var MobileNo = document.getElementById("mobile_no").value;
	
	$.post("/SpringTest/view/test/ffpsearch.do",
			{MobileNo:MobileNo},
			function(data,status){
				document.getElementById("result-div").innerHTML=data;
			    }
	);
	
}
function FfpIDSearch()
{
	
	var IDNO = document.getElementById("identify_no").value;
	
	$.post("/SpringTest/view/test/FfpIDSearch.do",
			{identify_no:IDNO},
			function(data,status){
				document.getElementById("result-div").innerHTML=data;
			    }
	);
	
}
</script>
</head>
<body>
	<h1>ffp serch page</h1>
	<div>
		<table>
			<tr>
				<td>mobile no:</td>
				<td><input type="text" name="mobile_no" id ="mobile_no"></td>
			</tr>
			<tr>
				<td><text></text></td>
				<td><button type="button" onclick="FfpSearch()">search</button></td>
			</tr>
		</table>
	</div>
	<div>
		<table>
			<tr>
				<td>identify no:</td>
				<td><input type="text" name="identify_no" id ="identify_no"></td>
			</tr>
			<tr>
				<td><text></text></td>
				<td><button type="button" onclick="FfpIDSearch()">search</button></td>
			</tr>
		</table>
	</div>
	<div id = "result-div">
	
	</div>
</body>
</html>
